export interface PasswordForm {
    oldPassword: string
    newPassword: string
    confirmPassword: string
}

export interface UserInfoForm {
    name: string
    avatar: string
}

export interface BannerForm {
    title: string
    cover: string
    link: string
    onself: boolean
  }

  export interface CategoryForm {
    title: string
    parentId: number
    sort: number
}

export interface ChapterForm {
    lessonId: number
    title: string
    video: string
    duration: number
    sort: number
}

export interface EbookForm {
    lessonId : number
    title: string
    file: string
    sort: number
}
export interface EbookBatchItem {
    title: string
    file: string
    sort: number
}
export interface EbookBatchForm {
    lessonId : number
    files : EbookBatchItem[]
}

export interface StudySearchForm {
    accountId: number
    studentName: string
    lessonId: number
    lessonTitle: string
    openStartDate: string
    openEndDate: string
    page: number
    limit: number
  }
  
  export interface StudentOpenLessonForm {
    accountIds: number[]
    lessonIds: number[]
  }

  export interface LessonSearchForm {
    title : string
    categoryId : number | number[] | undefined
    recommend : boolean | null
    onself: boolean | null
    year: string | number
    minPrice: number | null
    maxPrice: number | null
    page: number
    limit: number
}

export interface LessonPostForm {
    title: string
    categoryId: number
    thumb: string
    summary: string
    price: number
    marketPrice: number
    teachers: string
    recommend: boolean
    sort: number
}

export interface StudentSearchForm {
    field: number
    title: string
    page: number
    limit: number
}

export interface StudentUpdateForm {
    name: string
    avatar: string
    phone: string
    email: string
    birthday: string
    gender: number
    address: string
    hobby: string
}

export interface StudyLogParam {
    accountId: number
    page: number
    limit: number
}

export interface LessonStudyParam {
    accountId: number
    lessonId: number
    page: number
    limit: number
}

export interface OrderSearchForm {
    orderNo: string
    studentName: string
    lessonTitle: string
    status: number | null
    minPrice: number
    maxPrice: number
    startDate: string
    endDate: string
    page: number
    limit: number
}